package com.websem.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.websem.client.views.MainView;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Mercure implements EntryPoint {
	/**
	 * The message displayed to the user when the server cannot be reached or
	 * returns an error.
	 */
//	private static final String SERVER_ERROR = "An error occurred while "
//			+ "attempting to contact the server. Please check your network "
//			+ "connection and try again.";


	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		MainView mainView = new MainView();
		HorizontalPanel hpanel = new HorizontalPanel();
		SimplePanel sp1 = new SimplePanel();
		sp1.setWidth("150px");
		
		SimplePanel sp2 = new SimplePanel();
		sp2.setWidth("150px");
//		hpanel.setWidth("80%");
		hpanel.add(new Image("images/cinema-icon.png"));
		hpanel.add(sp1);
		hpanel.add(new Image("images/mercureTitle3.png"));
		hpanel.add(sp2);
		hpanel.add(new Image("images/cinema-2.png"));
		RootPanel.get("test").add(hpanel);
		RootPanel.get("test").add(mainView.onInitialize());
	}
}
